#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main06()
{
	int arr[] = { 9,5,7,10,2,3,4,6,8,1};
	int j = sizeof(arr) / sizeof(arr[0]) - 1, min = arr[0];
	int k = sizeof(arr) / sizeof(arr[0])-1;
	for (int i = 0; i < k; i++) {
		for (int i = 0; i < j; i++) {
			if (arr[i] > arr[i+1]) {
				min = arr[i+1];
				arr[i + 1] = arr[i];
				arr[i] = min;
			}
		}
		j--;
	}
	j = sizeof(arr) / sizeof(arr[0]) - 1;
	for (int i = 0; i <= j; i++) {
		printf("%d\n", arr[i]);
	}
	return 0;
}